package com.tyc.blockqueue;

import java.util.concurrent.SynchronousQueue;

/**
 * SynchronousQueue不存储数据
 */
public class Demo1 {
    public static void main(String[] args) {
        SynchronousQueue queue = new SynchronousQueue();
        System.out.println(queue.offer(1));
        System.out.println(queue.poll());
    }
}
